<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE>
<html  xmlns="http://www.w3.org/1999/xhtml" lang="en">
  <head>
    <title>Login to RouteAdvisor</title>
   
   <link href="views/css/bootstrap.css" rel="stylesheet" type="text/css">
   <link href="views/css/cover.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="views/js/jquery.min.js"></script>
<script type="text/javascript" src="views/js/bootstrap.min.js"></script>
  </head>
  <body>
  
 		<div class="site-wrapper">
		<div class="site-wrapper-inner">
			<div class="cover-container">
				<jsp:include page="common/header.jsp"></jsp:include>


				<div class="inner cover">
					<h1 class="cover-heading">Login to RouteAdvisor</h1>
					<p class="lead">Enter your credentials below</p>
					<p class="lead">
						<form action="j_spring_security_check" method="POST" id="login-form" class="form-horizontal" role="form">
							<div class="form-group">
								<label for="login-username" class="col-sm-4 control-label">Username</label>
								<div class="col-sm-6">
									<input type="text" id="login-username" class="form-control" autofocus name="j_username" />
								</div>
							</div>
							<div class="form-group">
								<label for="login-password" class="col-sm-4 control-label">Password</label>
								<div class="col-sm-6">
									<input type="password"  class="form-control" id="login-password" name="j_password" />
									<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-offset-2 col-sm-10">
									<button class="btn btn-default" type="submit">Log in</button>
								</div>
							</div>
							<c:if test="${!empty param.error}">
								<div class="errorContent">Invalid Username / Password</div>
							</c:if>
						</form>
					</p>
				</div>	
							
				<jsp:include page="common/footer.jsp"></jsp:include>
          
			</div>
		</div>
	</div>
  </body>
</html>